package SpeedCompare_sample.BitwiseOperation
{
	import SpeedCompare_sample.Common;

	public class BitwiseOperators extends Common
	{
		public function BitwiseOperators()
		{
			trace("uint.MAX_VALUE:"+uint.MAX_VALUE);
			//uint.MAX_VALUE:4294967295
			trace("uint.MIN_VALUE:"+uint.MIN_VALUE);
			//uint.MIN_VALUE:0
			trace("int.MAX_VALUE:"+int.MAX_VALUE);
			//int.MAX_VALUE:2147483647
			trace("int.MIN_VALUE:"+int.MIN_VALUE);
			//int.MIN_VALUE:-2147483648
			trace("Number.MAX_VALUE:"+Number.MAX_VALUE);
			//Number.MAX_VALUE:1.79769313486231e+308
			trace("Number.MIN_VALUE:"+Number.MIN_VALUE);
			//Number.MIN_VALUE:4.9406564584124654e-324
			trace("Number.NEGATIVE_INFINITY:"+Number.NEGATIVE_INFINITY);
			//Number.NEGATIVE_INFINITY:-Infinity
			trace("Number.POSITIVE_INFINITY:"+Number.POSITIVE_INFINITY);
			//Number.POSITIVE_INFINITY:Infinity
			trace("Number.NaN:"+Number.NaN);
			//Number.NaN:NaN
			
			for (var i:int = 0; i < 256; i++) 
			{
				trace(i+"二进制:"+i.toString(2));
				trace(i+"十六进制:"+i.toString(16));
			}
			
			//parseInt
			
			// & bitwise AND
			var insert:Number = 13; 
			var update:Number = 11; 
			trace(insert & update);
		}
	}
}